<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Dashboard.aspx.cs" Inherits="Dashboard" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<input type="hidden" id="hdClientUTC" runat="server">
<table id="Table1" cellpadding="5" cellspacing="0" width="100%">
                <tr>
                    <td bgcolor="#EBE7E7">                           
                        <table style="WIDTH: 100%">
                            <tr>
                                <td><asp:HyperLink ID="lnkMonitoredInstanceCount" runat="server" ForeColor="Green" 
                                        NavigateUrl="~/InstanceList.aspx?Where=Monitored">[lnkMonitoredInstanceCount]</asp:HyperLink>
                                    &nbsp;<asp:HyperLink ID="lnkNOTMonitoredInstanceCount" runat="server" 
                                        ForeColor="Red" NavigateUrl="~/InstanceList.aspx?Where=NOTMonitored">[lnkNOTMonitoredInstanceCount]</asp:HyperLink></td>
                                <td style="TEXT-ALIGN: right">
                                    <asp:LinkButton ID="lnkAlertStatus" runat="server" 
                                        onclick="lnkAlertStatus_Click"></asp:LinkButton></td>
                            </tr>                                
                        </table>
                    </td>
                </tr>                    
            </table>     
<table id="tblBulletin" cellpadding="5" cellspacing="1"  width="100%">
<tr>
                <td bgcolor="#EBE7E7">
                    <table style="WIDTH: 100%">
                        <tr>
                            <td style="width: 174px">
                                <asp:Label ID="lblBulletin" runat="server" Font-Bold="False">DBA BULLETIN BOARD</asp:Label>
                            </td>
                            <td style="TEXT-ALIGN: right">
                                <asp:LinkButton ID="btnAddBulletin" runat="server" 
                                    onclick="btnAddBulletin_Click">Add New Bulletin</asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="btnViewBulletin" runat="server" Font-Bold="False" OnClick="btnViewBulletin_Click">View</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                        <td colspan=2 bgcolor=#EBE7E7>
                        <div id="divBulletin" runat=server width=100%>                             
                        <asp:GridView ID="gvBulletin" runat="server" 
                            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                            GridLines="None" Width="100%">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <Columns>     
                            <asp:BoundField DataField="CreatedBy" HeaderText="Created By">
                                <ItemStyle HorizontalAlign="Left" Width="15%" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField> 
                            <asp:BoundField DataField="Bulletin" HeaderText="Bulletin">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>                                                                  
                                <asp:HyperLinkField DataNavigateUrlFields="BulletinID" 
                                    DataNavigateUrlFormatString="~/BulletinDetail.aspx?BulletinID={0}"  Text="View"
                                    HeaderText="" 
                                    NavigateUrl="~/BulletinDetail.aspx">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                </asp:HyperLinkField>                                                              
                        </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" 
                                ForeColor="White" HorizontalAlign="Left" Wrap="False" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                            </div>
                        </td></tr>
                    </table>
                    </td></tr>
</table>          
<table id="tblAlerts" cellpadding="5" cellspacing="1"  width="100%">
            <tr>
                <td bgcolor="#EBE7E7" style="HEIGHT: 16px">
                    <table width=100%>
                        <tr><td><asp:Image ID="imgAlerts" runat="server" />
                            <asp:Label ID="lblAlerts" runat="server" Font-Bold="False"></asp:Label></td>
                            <td style="TEXT-ALIGN: right">
                                <asp:LinkButton ID="btnViewAlerts" runat="server" Font-Bold="False" 
                                    onclick="btnViewAlerts_Click">View</asp:LinkButton></td>
                        </tr> 
                        <tr><td colspan=2 bgcolor=#EBE7E7>
                        <div id="divAlerts" runat=server width=100%>
                        <asp:GridView ID="gvAlerts" runat="server" AutoGenerateColumns="false" 
                            CellPadding="4" DataKeyNames="AlertID" ForeColor="#333333" GridLines="None" 
                            Width="100%" OnRowDataBound="gvAlerts_RowDataBound" Height="10%" >
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" 
                                ForeColor="White" HorizontalAlign="Left" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:BoundField DataField="AlertPriority" HeaderText="Priority">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="AlertInstanceName" HeaderText="Instance">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>                                    
                                <asp:BoundField DataField="AlertName" HeaderText="Alert">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField ControlStyle-Width="100" DataField="AlertLastOccurance" 
                                    HeaderText="Last Occurance" ItemStyle-Width="100">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <ControlStyle Width="100px" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="AlertCount" HeaderText="Count">
                                    <ItemStyle HorizontalAlign="Center" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="AlertStatus" HeaderText="Status/Ack">
                                    <ItemStyle HorizontalAlign="Center" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:BoundField>                                    
                            </Columns>
                        </asp:GridView>
                    </div></td></tr>                          
                    </table>
                </td>
            </tr>                
        </table> 
<table id="tblBlockedProcesses" cellpadding="5" cellspacing="1"  width="100%">
            <tr>
                <td bgcolor="#EBE7E7" style="HEIGHT: 16px">
                    <table style="WIDTH: 100%">
                        <tr>
                            <td style="width: 680px">
                                <asp:Image ID="imgBlocks" runat="server" />
                                <asp:Label ID="lblWaitingOrBlockedProcesses" runat="server" Font-Bold="False"></asp:Label></td>
                            <td style="TEXT-ALIGN: right">
                                <asp:LinkButton ID="btnClearWaitingBlockedProcesses" runat="server" Text = "Clear All" 
                                    onclick="btnClearWaitingBlockedProcesses_Click" Visible="False"></asp:LinkButton>
&nbsp;<asp:LinkButton ID="btnViewWaitingOrBlockedProcesses" runat="server" 
                                    Font-Bold="False" onclick="btnViewWaitingOrBlockedProcesses_Click">View</asp:LinkButton></td>
                        </tr>
                        <tr><td colspan=2 bgcolor=#EBE7E7>
                        <div id="divWaitingOrBlockedProcesses" runat=server width=100%>
                    <asp:GridView ID="gvWaitingOrBlockedProcesses" runat="server" auto
                        AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Width="100%" Visible="False" >
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="instance" 
                                DataNavigateUrlFormatString="~/InstanceDetail.aspx?InstanceName={0}" 
                                DataTextField="instance" HeaderText="Instance" 
                                NavigateUrl="~/InstanceDetail.aspx">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="spid" HeaderText="Spid">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="blocked" HeaderText="Blocked">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:HyperLinkField DataNavigateUrlFields="instance,databasename" 
                                DataNavigateUrlFormatString="~/DatabaseDetail.aspx?InstanceName={0}&amp;DatabaseName={1}" 
                                DataTextField="databasename" HeaderText="Database">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="cmd" HeaderText="CMD">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="cpu" HeaderText="CPU">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="io" HeaderText="IO">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="memusage" HeaderText="Memory">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="waittime" HeaderText="Wait Time">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>                                                          
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" 
                            ForeColor="White" HorizontalAlign="Left" Wrap="False" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    </div>
                        </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>    
<table id="tblFailedJobs" cellpadding="5" cellspacing="1"  width="100%">
            <tr>
                <td bgcolor="#EBE7E7" style="HEIGHT: 16px">
                    <table style="WIDTH: 100%">
                        <tr>
                            <td style="width: 680px">
                                <asp:Image ID="imgFailedTasks" runat="server" />
                                <asp:Label ID="lblFailedScheduledTasks" runat="server" Font-Bold="False"></asp:Label>
                            </td>
                            <td style="TEXT-ALIGN: right">
                                <asp:LinkButton ID="btnClearFailedScheduledTasks" runat="server" 
                                    onclick="btnClearFailedScheduledTasks_Click" Visible="False">ClearAll</asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="btnViewFailedScheduledTAsks" runat="server" 
                                    Font-Bold="False" onclick="btnViewFailedScheduledTAsks_Click">View</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td colspan=2 bgcolor=#EBE7E7> 
                        <div id="divFailedJobs" runat=server width=100%>
                    <asp:GridView ID="gvFailedJobs" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                            Visible="False">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="InstanceName" 
                                DataNavigateUrlFormatString="~/InstanceDetail.aspx?InstanceName={0}" 
                                DataTextField="InstanceName" HeaderText="Instance" 
                                NavigateUrl="~/InstanceDetail.aspx">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="JobName" HeaderText="Job">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LastRunOutcome" HeaderText="Last Run Outcome">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LastRunDate" HeaderText="Last Run Date">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:HyperLinkField DataNavigateUrlFields="instancename,jobid" 
                                DataNavigateUrlFormatString="~/JobDetail.aspx?InstanceName={0}&amp;JobID={1}" Text="Details" HeaderText="Details">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>                                                          
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" 
                            ForeColor="White" HorizontalAlign="Left" Wrap="False" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    </div></td></tr>
                    </table>   
                    </td></tr>             
        </table>
<table id="tblDatabasesNotBackedUp" cellpadding="5" cellspacing="1"  width="100%">
            <tr>
                <td bgcolor="#EBE7E7">
                    <table width=100%>
                        <tr>
                            <td><asp:Image ID="imgBackup" runat="server" />
                             <asp:Label ID="lblBackupReport" runat="server" Font-Bold="False"></asp:Label>
                            </td>
                            <td style="TEXT-ALIGN: right">
                                <asp:LinkButton ID="btnBackupReport" runat="server" onclick="btnBackupReport_Click">View</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                        <td colspan=2 bgcolor=#EBE7E7> 
                        <div id="divBackupReport" runat=server width=100%>
                        <asp:GridView ID="gvBackupReport1" runat="server" OnRowDataBound="gvBackupReport_RowDataBound" 
                            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                            GridLines="None" Visible="False" Width="100%">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="instancename" 
                                DataNavigateUrlFormatString="~/InstanceDetail.aspx?InstanceName={0}" 
                                DataTextField="instancename" HeaderText="Instance"
                                NavigateUrl="~/InstanceDetail.aspx" SortExpression="instancename">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                            <asp:HyperLinkField DataNavigateUrlFields="instancename,databasename" 
                                DataNavigateUrlFormatString="~/DatabaseDetail.aspx?InstanceName={0}&amp;DatabaseName={1}" 
                                DataTextField="databasename" HeaderText="Database" SortExpression="databasename">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="HrsSinceLastFULL" HeaderText="HrsSinceLastFULL" SortExpression="LastBackupFULL">
                                <ItemStyle HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>     
                                <asp:BoundField DataField="HrsSinceLastDIFF" HeaderText="HrsSinceLastDIFF" SortExpression="LastBackupDIFF">
                                <ItemStyle HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                                <asp:BoundField DataField="HrsSinceLastLOG" HeaderText="HrsSinceLastLOG" SortExpression="LastBackupLOG">
                                <ItemStyle HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>                                                          
                        </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" 
                                ForeColor="White" HorizontalAlign="Left" Wrap="False" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                    </div>
                        </td></tr>
                    </table>
                    </td></tr>
        </table>
<table id="tblLowFreeSpace" runat=server cellpadding="5" cellspacing="1"  width="100%">
 <tr><td bgcolor="#EBE7E7">
  <table width=100%>
   <tr>
    <td><asp:Image ID="imgLowFreeSpace" runat="server" />
    <asp:Label ID="lblLowFreeSpace" runat="server" Font-Bold="False"></asp:Label></td>
    <td style="TEXT-ALIGN: right"><asp:LinkButton ID="btnViewLowFreeSpace" runat="server" onclick="btnViewLowFreeSpace_Click">View</asp:LinkButton></td>
   </tr>
   <tr><td colspan=2 bgcolor=#EBE7E7>
    <div id="divLowFreeSpace" runat=server width=100%>
    <asp:GridView ID="gvLowFreeSpace" runat="server" AllowSorting="False" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="InstanceName" DataNavigateUrlFormatString="~/InstanceDetail.aspx?InstanceName={0}" DataTextField="InstanceName" HeaderText="Instance Name" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="InstanceName,DatabaseName" DataNavigateUrlFormatString="~/DatabaseDetail.aspx?InstanceName={0}&DatabaseName={1}" DataTextField="DatabaseName" HeaderText="Database Name" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="SizeMB" HeaderText="SizeMB">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>   
            <asp:BoundField DataField="UsedMB" HeaderText="UsedMB">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>   
            <asp:BoundField DataField="AvailableMB" HeaderText="AvailableMB">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField> 
            <asp:BoundField DataField="AvailablePct" HeaderText="AvailablePct">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>                                
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>  
    </div></td>
   </tr>
  </table>
 </td>
 </tr>
</table>
<table id="tblHighFreeSpace" runat=server cellpadding="5" cellspacing="1"  width="100%">
 <tr><td bgcolor="#EBE7E7">
  <table width=100%>
   <tr>
    <td><asp:Image ID="imgHighFreeSpace" runat="server" />
    <asp:Label ID="lblHighFreeSpace" runat="server" Font-Bold="False"></asp:Label></td>
    <td style="TEXT-ALIGN: right"><asp:LinkButton ID="btnViewHighFreeSpace" 
            runat="server" onclick="btnViewHighFreeSpace_Click">View</asp:LinkButton></td>
   </tr>
   <tr><td colspan=2 bgcolor=#EBE7E7>
    <div id="divHighFreeSpace" runat=server width=100%>  
    <asp:GridView ID="gvHighFreeSpace" runat="server" AllowSorting="False" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="InstanceName" DataNavigateUrlFormatString="~/InstanceDetail.aspx?InstanceName={0}" DataTextField="InstanceName" HeaderText="Instance Name" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="InstanceName,DatabaseName" DataNavigateUrlFormatString="~/DatabaseDetail.aspx?InstanceName={0}&DatabaseName={1}" DataTextField="DatabaseName" HeaderText="Database Name" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="SizeMB" HeaderText="SizeMB">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>   
            <asp:BoundField DataField="UsedMB" HeaderText="UsedMB">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>   
            <asp:BoundField DataField="AvailableMB" HeaderText="AvailableMB">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField> 
            <asp:BoundField DataField="AvailablePct" HeaderText="AvailablePct">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>                                
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>  
    </div></td>
   </tr>
  </table>
 </td>
 </tr>
</table>
<table id="tblLockedOutAccounts" runat=server cellpadding="5" cellspacing="1"  width="100%">
            <tr><td bgcolor="#EBE7E7">
                    <table style="WIDTH: 100%">
                        <tr>
                            <td>
                                <asp:Image ID="imgLockedOutAccounts" runat="server" />
                                <asp:Label ID="lblLockedOutSQLAccounts" runat="server" Font-Bold="False"></asp:Label>
                            </td>
                            <td style="TEXT-ALIGN: right">
                                <asp:LinkButton ID="btnViewLockedOutSqlAccounts" runat="server" 
                                    onclick="btnViewLockedOutSqlAccounts_Click">View</asp:LinkButton>
                            </td>
                        </tr>
                        <tr><td colspan=2 bgcolor=#EBE7E7> 
                        <div id="divLockedOutSQLAccounts" runat=server width=100%>
                    <asp:GridView ID="gvLockedOutSQLAccounts" runat="server" 
                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Visible="False" Width="100%">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="instancename" 
                                DataNavigateUrlFormatString="~/InstanceDetail.aspx?InstanceName={0}" 
                                DataTextField="instancename" HeaderText="Instance" 
                                NavigateUrl="~/InstanceDetail.aspx">
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                            <asp:HyperLinkField DataNavigateUrlFields="instancename,login" 
                                DataNavigateUrlFormatString="~/SQLAccountDetail.aspx?InstanceName={0}&amp;LoginName={1}" 
                                DataTextField="login" HeaderText="Login" />
                            <asp:BoundField DataField="isExpired" HeaderText="isExpired" />
                            <asp:BoundField DataField="isLocked" HeaderText="isLocked" />
                            <asp:BoundField DataField="lockouttime" HeaderText="LockOutTime" />                            
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#003366" Font-Bold="True" Font-Size="X-Small" 
                            ForeColor="White" HorizontalAlign="Left" Wrap="False" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    </div>
                    </td></tr>
                    </table>
                    </td></tr>
        </table>
</asp:Content>